package com.csist.mapper.po.basicInfoModule;

import com.csist.pojo.po.basicInfoModule.EducationBackground;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface EducationBackgroundMapper {
    /**
     * 查询所有学历信息
     * @return
     */
    List<EducationBackground> findAll();

    /**
     * 根据id查询学历信息
     * @param id
     * @return
     */
    EducationBackground getEducationBackgroundById(@Param("id") int id);

    /**
     * 根据条件模糊查询
     * @param educationBackground
     * @return
     */
    List<EducationBackground> findEducationBackgroundFuzzy(EducationBackground educationBackground);

    /**
     * 根据条件查询
     * @param educationBackground
     * @return
     */
    List<EducationBackground> findEducationBackground(EducationBackground educationBackground);

    /**
     * 添加学历信息
     * @param educationBackground
     */
    int addEducationBackground(EducationBackground educationBackground);

    /**
     * 修改学历层次
     * @param educationBackground
     */
    int updateEducationBackground(EducationBackground educationBackground);

    /**
     *修改学历层次状态
     * @param ebId
     * @return
     */
    int updateEducationBackgroundByState(int ebId);

    /**
     * 删除学历信息(物理删除)
     * @param ebId
     */
    int deleteEducationBackground(int ebId);



}
